<%@ page contentType="text/html; charset=UTF-8" %>
<!DOCTYPE html>
<html lang="cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>简历管理</title>
    <!--jQuery-->
    <script type="text/javascript" src="/static/jQuery/jquery.js"></script>
    <!--easyUI-->
    <link rel="stylesheet" type="text/css" href="/static/easyUI/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/easyUI/themes/icon.css">
    <script type="text/javascript" src="/static/easyUI/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/easyUI/locale/easyui-lang-zh_CN.js"></script>
    <!--layer弹出框-->
    <script type="text/javascript" src="/static/layer/layer.js"></script>
    <!--LQStrap-->
    <script type="text/javascript" src="/static/lqStrap/easyUIStrengthen.js"></script>

</head>
<body>

<table id="gridBean" class="easyui-datagrid" title="用户管理"
       data-options="singleSelect:true,
           collapsible:true,
           url:'/resume/query',
           method:'get',
           rownumbers:true,//显示行号
           toolbar:'#tb'
        "
       style="width:800px;height:650px;">
    <thead>
    <tr>
        <th data-options="field:'id',width:40,hidden:true">主键</th>
        <th data-options="field:'name',width:120">用户名</th>
        <th data-options="field:'address',width:100">地址</th>
        <th data-options="field:'phone',width:100">电话</th>
        <th width="100" data-options="field:'_operate',formatter:formatOper">操作</th>
    </tr>
    </thead>
</table>
<!--头部工具栏-->
<div id="tb" style="padding:2px 5px;text-align: right;">
    <a href="#" class="easyui-linkbutton" iconCls="icon-add"
       onclick="addBean()" plain="true">新增</a>
</div>

<!--新增-->
<div id="dlgBean" class="easyui-dialog"
     data-options="iconCls:'icon-add',
        title:'新增用户信息',
        closed:true,//默认隐藏
        modal:true
     "
     style="width:400px;height:auto;padding:10px;">
    <form id="formBean">
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" name="name" style="width:100%"
                   data-options="label:'用户名:',required:true">
        </div>
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" name="address" style="width:100%"
                   data-options="label:'地址:',required:true">
        </div>
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" name="phone" style="width:100%;"
                   data-options="label:'电话:',required:true">
        </div>
    </form>
    <div style="text-align:center;padding:5px 0">
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()" style="width:80px">提交</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()" style="width:80px">清空</a>
    </div>
</div>
<!--修改-->
<div id="dlgBean02" class="easyui-dialog"
     data-options="iconCls:'icon-edit',
        title:'修改用户信息',
        closed:true,//默认隐藏
        modal:true
     "
     style="width:400px;height:auto;padding:10px;">
    <form id="formBean02">
        <div style="display: none;">
            <input class="easyui-textbox" name="id" style="width:100%"
                   data-options="label:'主键:'">
        </div>
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" name="name" style="width:100%"
                   data-options="label:'用户民:',required:true">
        </div>
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" name="address" style="width:100%"
                   data-options="label:'地址:',required:true">
        </div>
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" name="phone" style="width:100%;"
                   data-options="label:'电话:',required:true">
        </div>
    </form>
    <div style="text-align:center;padding:5px 0">
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="updateSubmit()" style="width:80px">提交</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="updateClear()" style="width:80px">清空</a>
    </div>
</div>

<script type="application/javascript" src="/static/js/resume.js"></script>

</body>
</html>
